/**
 * Framework Tec - Message.java
 *
 * @author Abdessamad HAILASS
 * @since 2011
 **/
 
package tec;

class Messages {
  final private String [] data = new String [256];
  private int nbElement;

  void clear() {
    for (int i = 0; i < data.length; i++) {
      if (data[i] == null)
	break;
      data[i] = null;
    }
    nbElement = 0;
  } 

  int size() {
    return nbElement;
  }

  String get(int num) {
    return data[num - 1];
  }

  void add(String s) {
    data[nbElement++] = s;
  }
}

